#!/usr/bin/env python
# -*- coding: utf-8 -*-

import random

#一，随机生成整数类
class Randnum:
    start = 0
    end = 40

    def __init__(self,start,end, num=20):
        self.start = start
        self.end = end
        self.num = num

    def rand_num(self):
        nums = random.choices(range(self.start,self.end), k=self.num)
        return nums


randnum = Randnum(1,100,20)

#二，打印坐标
res = randnum.rand_num()
print(res)
for i in range(0,len(res),2):
    x,y = res[i],res[i+1]
    print('coordinate: ({},{})'.format(x,y))




# 做得不错






